package com.fiveGroup.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fiveGroup.mapper.ProductMapper;
import com.fiveGroup.pojo.Product;
import com.fiveGroup.pojo.vo.ProductAuditVo;
import com.fiveGroup.pojo.vo.ProductVo;
import com.fiveGroup.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 86188
 * @description 针对表【product(商品基本信息表)】的数据库操作Service实现
 * @createDate 2025-09-26 15:01:12
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
        implements ProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public List<ProductVo> listAll(IPage<ProductVo> productIPage, QueryWrapper<Product> queryWrapper) {
        return productMapper.listAll(productIPage, queryWrapper);
    }

    @Override
    public ProductVo getGoodById(Long id) {
        return productMapper.getGoodById(id);
    }

    @Override
    public List<ProductAuditVo> productAndImageList(IPage<Product> productIPage) {
        return productMapper.productAndImageList(productIPage);
    }
}




